Python Regex | Program to accept string ending with alphanumeric character
Prerequisite: Regular expression in PythonGiven a string, write a Python program to check whether the given string is ending with only alphanumeric character or Not.Examples:...
read more
Python | Remove all characters except letters and numbers
Given a string, the task is to remove all the characters except numbers and alphabets. String manipulation is a very important task in a day to day coding and web development. Most of the requests and responses in HTTP queries are in the form of Python strings with sometimes some useless data which we need to remove....
read more
How to add Music Playlist in Pygame?
In this article, we are going to see how to add a music playlist in Pygame....
read more
Compute the condition number of a given matrix using NumPy
In this article, we will use the cond() function of the NumPy package to calculate the condition number of a given matrix. cond() is a function of linear algebra module in NumPy package....
read more
Python Program to print a number diamond of any given size N in Rangoli Style
Given an integer N, the task is to print a number diamond of size N in rangoli style where N means till Nth number from number ‘1’....
read more
Python – Phrase removal in String
Sometimes, while working with Python strings, we can have a problem in which we need to extract certain words in a string excluding the initial and rear K words. This can have application in many domains including all those include data. Lets discuss certain ways in which this task can be performed....
read more
hashlib.sha3_256() in Python
With the help of hashlib.sha3_256() method, we can convert the normal string in byte format is converted to an encrypted form. Passwords and important files can be converted into hash to protect them with the help of hashlib.sha3_256() method....
read more
Python | Group tuples in list with same first value
Given a list of tuples, the task is to print another list containing tuple of same first element. Below are some ways to achieve above tasks....
read more
Python | List expansion by K
Sometimes, we require to reduce the length of the python list but other times we might also require to increase its size, and that too by repeating every element N times. This type of utility can come in day-day programming. Let’s discuss certain ways in which this can be achieved....
read more
Python – Test for all Even elements in the List for the given Range
Given a List of elements, test if all elements are even in a range....
read more
Python – Flatten and remove keys from Dictionary
Given a dictionary, perform flattening and removal of certain dictionary keys....
read more
Python – Remove front K characters from each string in String List
Sometimes, we come across an issue in which we require to delete the first K characters from each string, that we might have added by mistake and we need to extend this to the whole list. This type of utility is common in web development. Having shorthands to perform this particular job is always a plus. Let’s discuss certain ways in which this can be achieved....
read more